﻿<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@include file="/static/common/header.jsp"%>
<%@include file="/static/common/easyui.jsp"%>
<%@include file="/static/common/common.jsp"%>
<script src="${ctx}/static/jquery/jquery.form.js" type="text/javascript"></script>
<link href="${ctx}/static/css/main.css" rel="stylesheet">


<script>
$(document).ready(function(){
	initUserGrid('${ctx}/Mng/user/list');	
});

</script>
  </head>
  
<body class="easyui-layout" >
<div region="center" class="bmargin">
		<table id="userTable" title=""  data-options="singleSelect:true,fit:true">
		</table>
 </div>
<div id="userToolBar" class="datagrid-toolbar" style="padding:5px;height:auto">
    <form id="queryForm">
		<table cellpadding="0" cellspacing="0" height="30px" width="100%">
			<tr><td nowrap="nowrap">
				  登录名:
				  <input type="text" name="loginName" id="lname" style="width:100px">
				  姓名:
				  <input type="text" name="name" id="uname" style="width:100px">
			</td>
			<td width="20%" nowrap="nowrap">
			<a href="javascript:void(0)" onClick="searchUser();" class="easyui-linkbutton" iconCls="icon-search">搜索</a> 
			 <a href="javascript:void(0)" onClick="clearForm();" class="easyui-linkbutton" iconCls="icon-reload">清空</a> 
			</td></tr>
		</table>
	</form>
	<form id="restForm" method="post">
  <input id="uid" name="id" type="hidden"/>
  <input id="uln" name="loginName" type="hidden"/>
</form>
  <a href="javascript:void(0)" onClick="addUserRow();" id="btnadd" class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a> 
  <a href="javascript:void(0)" onClick="deleteUserRow();" id="btnremove" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a> 
  <a href="javascript:void(0)" onClick="updateUserRow(null);" id="btnedit" class="easyui-linkbutton" iconCls="icon-edit" plain="true">更新</a> 
  <a href="javascript:void(0)" onClick="restPass();" id="btnedit" class="easyui-linkbutton" iconCls="icon-edit" plain="true">重置密码</a> 
 </div>

	
	<%@include file="/WEB-INF/views/frm/account/userAdd.jsp"%>
  </body>
</html>
